<template>
  <div class="my_app">
    <Head>求职群</Head>
    <div class="qrcode_box">
      <!-- <div class="box_qz" v-if="jobSearchGroupData.main_title">
        <div class="qz_img"><img :src="jobSearchGroupData.groupPortraitUrl" alt=""></div>
        <div class="box_p">
          <div class="p1">{{jobSearchGroupData.main_title}}</div>
          <div class="p2 substring2">{{jobSearchGroupData.subtitle}}</div>
        </div>
      </div> -->
        <img :src="jobSearchGroupData.qrcode" class="qrcode" alt="" v-if="jobSearchGroupData.qrcode">
        <img class="successIcon" src="../assets/images/defaultPicture.png" alt="" v-else>
      <div class="txt1" v-if="jobSearchGroupData.qrcode">
        <span class="rq">长按识别图中二维码即可入群</span>
      </div>
      <div class="txt1" v-else>
        <span class="rq2">暂未上传二维码，进群请联系客服</span>
      </div>
    </div>
  </div>
</template>

<script>
import http from '@/utils/http'
import api from '@/api'
export default {
  name: 'JobShow',
  components: {
  },
  data () {
    return {
      jobSearchGroupData: []
    }
  },
  created () {
    this.getJobSearchGroup()
  },
  methods: {
    getJobSearchGroup () {
      http
        .get(api.jobSearchGroup)
        .then(res => {
          if (res.code === 200) {
            this.jobSearchGroupData = res.data
          }
        })
        .catch(() => {})
    }
  }
}
</script>

<style lang="scss" scoped>
.my_app{
  background: #F7F7F7;
  height: 100vh;
  .qrcode_box{
    background: #FFFFFF;
    border-radius: 6px;
    width: 313px;
    height: 435px;
    margin: 90px auto;
    .qrcode{
      width: 250px;
      height: 250px;
      margin: 26px auto 0px;
      display: block;
    }
    .successIcon{
      width: 180px;
      height: 180px;
      margin: 82px 67px 0px;
    }
  }
  .box_qz{
    display: flex;
    min-height: 50px;
    padding: 32px 0 0 33px;
    .box_p{
      width: 185px;
      margin-right: 15px;
      margin-top: -3px;
      .p1{
        font-size: 16px;
        font-weight: bold;
        color: #282828;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .p2{
        font-size: 13px;
        font-weight: 300;
        color: #808080;
        line-height: 16px;
      }
    }
    .qz_img{
      width: 51px;
      height: 51px;
      margin-right: 11px;
      img{
        width: 50.5px;
        height: 50.5px;
      }
    }
  }
  .txt1{
    margin-top: -2px;
    .rq{
      font-size: 14px;
      font-weight: 300;
      color: #636363;
      padding-left: 57px;
    }
    .rq2{
      font-size: 14px;
      color: #636363;
      padding-left: 52px;
      font-weight: 300;
    }
  }

}
</style>
